import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/view_config/` + url, ...arg)

export default {
    async list(data) {
        return await request('list', data, 'post')
    },
    async removeById(data) {
        return await request('remove_by_id', data, 'post')
    },
    async save(data) {
        return await request('save', data, 'post')
    },
    async saveViewContent(data) {
        return await request('save_view_content', data, 'post')
    },
    async getById(data) {
        return await request('get_by_id', data, 'post')
    },
    async offline(data) {
        return await request('offline', data, 'post')
    },
    async online(data) {
        return await request('online', data, 'post')
    },
    async getByPath(data) {
        return await request('get_by_path', data, 'post')
    },

}
